import * as types from '../constants/ActionTypes';
/*
*销售机会筛选条件
*/
const fetchFilter = filterObj => (dispatch) => {
  dispatch(filter(filterObj));
};
/**
*我的客户
*/
const fetchFilterMy = filterObj => (dispatch) => {
  dispatch(filterMy(filterObj));
};
/**
*他人客户
*/
const fetchFilterOther = filterObj => (dispatch) => {
  dispatch(filterOther(filterObj));
};
/**
*其他客户渠道
*/
const fetchFilterChancle = filterObj => (dispatch) => {
  dispatch(filterChannel(filterObj));
};
const filter = saleFilterObj => ({
  type: types.SALE_CHANCE_FILTER,
  saleFilterObj,
});
const filterMy = FilterObjMy => ({
  type: types.MYCUSTOMER_FILTER,
  FilterObjMy,
});
const filterOther = FilterObjOther => ({
  type: types.OTHER_CUSTOMER_FILTER,
  FilterObjOther,
});
const filterChannel = FilterObjChannel => ({
  type: types.CHANNEL_FILTER,
  FilterObjChannel,
});
export {
  fetchFilter,
  fetchFilterMy,
  fetchFilterOther,
  fetchFilterChancle,
};
